package com.engine4cloud.tdf.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.education.dto.create.PublicWelfareAttendCreateDTO;
import com.engine4cloud.tdf.education.dto.query.PublicWelfareAttendQueryDTO;
import com.engine4cloud.tdf.education.dto.result.PublicWelfareAttendResultDTO;
import com.engine4cloud.tdf.education.dto.update.PublicWelfareAttendUpdateDTO;
import com.engine4cloud.tdf.education.entity.PublicWelfareAttendEntity;

import java.util.List;

public interface PublicWelfareAttendService extends IService<PublicWelfareAttendEntity> {

    PageInfo<PublicWelfareAttendResultDTO> pageList(Params page, PublicWelfareAttendQueryDTO dto);

    PublicWelfareAttendResultDTO getById(Long id);

    void batchCreate(String code, List<PublicWelfareAttendCreateDTO> attendList);

    void batchUpdate(String code, List<PublicWelfareAttendCreateDTO> attendList);

    Boolean updateBatch(List<PublicWelfareAttendUpdateDTO> dto);
}
